home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Font / DLL / MkStubsOs < prev    next >
Text File  |  1995-09-04  |  4KB  |  161 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.FontPaint3    \
  4.             o.LoseAll    \
  5.             o.Font00    \
  6.             o.Font01    \
  7.             o.Font02    \
  8.             o.Font03    \
  9.             o.Font04    \
  10.             o.Font05    \
  11.             o.Font06    \
  12.             o.Font07    \
  13.             o.Font08    \
  14.             o.Font09    \
  15.             o.Font0a    \
  16.             o.Font0b    \
  17.             o.Font0c    \
  18.             o.Font0d    \
  19.             o.Font0e    \
  20.             o.Font0f    \
  21.             o.Font10    \
  22.             o.Font11    \
  23.             o.Font12    \
  24.             o.Font13    \
  25.             o.Font14    \
  26.             o.Font15    \
  27.             o.Font16    \
  28.             o.Font17    \
  29.  
  30.  
  31. LibName        =    Font
  32.  
  33.  
  34.  
  35. # Template makefile to make all .o files
  36. # and the SDLS Stubs file for DeskLib
  37. # sublibraries.
  38. # Julian Smith 16 Mar 1995.
  39.  
  40.  
  41. # The macro $(ObjectFiles) should be set at the 
  42. # start of this file, to be a space-separated
  43. # list of object files.
  44. # This is done by 'Makatic'.
  45.  
  46.  
  47. # The macro $(LibName) should also be set at the 
  48. # start of this file, to be the name of the 
  49. # DeskLib sublibrary.
  50. # This is done by 'Makatic'.
  51.  
  52. # Compiler and linker flags, These can be anything. 
  53. # All flags required by Straylight (eg CC -zM and
  54. # Link -rmf) are included in the macros $(CC) and
  55. # $(LINK).
  56. #
  57. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  58. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  59.  
  60.  
  61. # Macros for commands, including the Straylight
  62. # tool 'cdll'. Note that DRLink doesn't seem to
  63. # work with the SDLS.
  64. #
  65. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  66. ASM        =    ObjAsm $(ASMFlags)
  67. CDLL        =    cdll
  68. LINK        =    link
  69. AS        =    as -dde -throwback
  70.  
  71.  
  72. # filename of DLL Stubs aof file. This is linked with client apps.
  73. DLL_Stubs    =    Stubs
  74.  
  75.  
  76. # Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
  77. #
  78. # DLL_Def:        Standard definition file as per SDLS docs.
  79. # DLL_OtherStubsSource    Assembler source to be partially linked into
  80. #            the final stubs file. This will force linking
  81. #            in of stubs from any other DLLs used by this
  82. #            library when a client application is built.
  83. # DLL_PlainStubs    The vanilla stubs file created by SDLS's cdll.
  84. # DLL_OtherStubsObject    Assembled from DLL_OtherStubsSource. This
  85. #            simply imports __DeskLib_SDLS_Stubs_<libname>'s
  86. #            for all DeskLib DLLs used by this library, and
  87. #            exports __DeskLib_SDLS_Stubs_<thislibname>.
  88. #
  89. DLL_Def            =    ^.DLLDef
  90. DLL_OtherStubsSource    =    ^.OtherStubs
  91.  
  92. DLL_PlainStubs        =    PlainStubs
  93. DLL_OtherStubsObject    =    OSObj
  94.  
  95. # -------------------------------------------------------
  96. # Everything below here should probably not be changed...
  97. # -------------------------------------------------------
  98.  
  99.  
  100.  
  101. # Now all the rules...
  102.  
  103.  
  104. # Here's the two things we want to make...
  105. #
  106. All:    $(DLL_Stubs) $(ObjectFiles)
  107.  
  108. $(DLL_Stubs):    $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  109.     $(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
  110.  
  111. $(DLL_PlainStubs):    $(DLL_Def)
  112.     $(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
  113.  
  114.  
  115. #$(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  116. #    $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
  117.  
  118. $(DLL_OtherStubsObject):    $(DLL_OtherStubsSource)
  119.     $(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject) 
  120.  
  121.  
  122. $(DLL_Def):    
  123.     | Warning: No DLL definition file exists.
  124.     | Creating a default DLL definition file: $(DLL_Def)
  125.     | This will have to be altered by hand.
  126.     $(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
  127.  
  128.  
  129.  
  130. # Rule for compiling C source code for a Straylight dynamically-linked library.
  131.  
  132. VPATH = @.^
  133.  
  134. .SUFFIXES:    .o .c .s
  135.  
  136. .c.o:
  137.     $(CC) -o $@ $<
  138.  
  139. .s.o:
  140.     $(ASM) $(ASMFlags) -from $< -to $@
  141.  
  142.  
  143.  
  144. # Dynamic dependencies:
  145. o.FontPaint3:    ^.c.FontPaint3
  146. o.FontPaint3:    DeskLib:h.Font
  147. o.FontPaint3:    DeskLib:h.Core
  148. o.FontPaint3:    C:h.stddef
  149. o.FontPaint3:    C:DLLLib.h.dll
  150. o.FontPaint3:    C:h.kernel
  151. o.FontPaint3:    DeskLib:h.Wimp
  152. o.FontPaint3:    DeskLib:h.SWI
  153. o.LoseAll:    ^.c.LoseAll
  154. o.LoseAll:    DeskLib:h.Font
  155. o.LoseAll:    DeskLib:h.Core
  156. o.LoseAll:    C:h.stddef
  157. o.LoseAll:    C:DLLLib.h.dll
  158. o.LoseAll:    C:h.kernel
  159. o.LoseAll:    DeskLib:h.Wimp
  160.